package com.acegear.horizon.domain.events;

/**
 * Created by guoweike on 2017/1/23.
 */
public class AnswerQAEvent extends BaseEvent {

  private Long eventQAId;

  private Long eventId;

  private QAType type;

  private String problem;

  private String answer;

  private Long userId;

  public AnswerQAEvent(Long eventQAId, Long eventId, QAType type, String problem, String answer,
                       Long userId) {
    this.eventQAId = eventQAId;
    this.eventId = eventId;
    this.type = type;
    this.problem = problem;
    this.answer = answer;
    this.userId = userId;
    genEventId();
  }

  public AnswerQAEvent() {
  }

  public Long getEventQAId() {
    return eventQAId;
  }

  public void setEventQAId(Long eventQAId) {
    this.eventQAId = eventQAId;
  }

  @Override
  public Long getEventId() {
    return eventId;
  }

  @Override
  public void setEventId(Long eventId) {
    this.eventId = eventId;
  }

  public QAType getType() {
    return type;
  }

  public void setType(QAType type) {
    this.type = type;
  }


  public String getProblem() {
    return problem;
  }

  public void setProblem(String problem) {
    this.problem = problem;
  }

  public String getAnswer() {
    return answer;
  }

  public void setAnswer(String answer) {
    this.answer = answer;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long cUserId) {
    this.userId = userId;
  }

  @Override
  public String routingKey() {
    return "horizon.domain.activity.qa.answer";
  }
}
